# -*- coding: utf-8 -*-
from tornado import gen
from tornado.ioloop import IOLoop
import time
from qcmodule import reply
from qcmodule import zan
from qcmodule import notice
from qcmodule import consult


@gen.coroutine
def main():
    while True:
        yield reply.deal_push_reply()
        yield zan.deal_push_zan()
        yield notice.deal_push_notice()
        yield consult.deal_push_pub_consult()
        yield consult.deal_push_consult()
        time.sleep(1)


if __name__ == "__main__":
    IOLoop.current().run_sync(main)
